﻿"use strict";

String.prototype.startWith = function (str) {
    return this.substr(0, str.length) === str;
}

String.prototype.endWith = function (str) {
    return this.substring(this.length - str.length) === str;
}